function getManufacturerPage (params) {
  return $axios({
    url: '/manufacturer/page',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function deleteManufacturer (id) {
  return $axios({
    url: `/manufacturer/${id}`,
    method: 'delete',
  })
}

function deleteManufacturer1 (params) {
  return $axios({
    url: '/manufacturer',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addManufacturer (params) {
  return $axios({
    url: '/manufacturer',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加员工
function editManufacturer (params) {
  return $axios({
    url: '/manufacturer',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryManufacturerById (id) {
  return $axios({
    url: `/manufacturer/${id}`,
    method: 'get'
  })
}

function getManufacturerList (params) {
  return $axios({
    url: '/manufacturer/list',
    method: 'get',
    params
  })
}